package SingletonPattern.singletonC;


public class test {
    public static void main(String[] args) {
        singleton singleton1 = SingletonPattern.singletonC.singleton.getInstance();//获取实例对象
        singleton singleton2 = SingletonPattern.singletonC.singleton.getInstance();
        System.out.println(singleton1 == singleton2);//true,表明两个实例对象化相等
    }
}
